package cn.edu.sgu.www.mhxysy.service.prop.impl;

import cn.edu.sgu.www.mhxysy.entity.prop.PropState;
import cn.edu.sgu.www.mhxysy.mapper.prop.PropStateMapper;
import cn.edu.sgu.www.mhxysy.service.prop.PropStateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class PropStateServiceImpl implements PropStateService {

    private final PropStateMapper propStateMapper;

    @Autowired
    public PropStateServiceImpl(PropStateMapper propStateMapper) {
        this.propStateMapper = propStateMapper;
    }

    @Override
    public List<PropState> selectAll() {
        return propStateMapper.selectList(null);
    }

    @Override
    public PropState selectById(Integer id) {
        return propStateMapper.selectById(id);
    }

}